HCL
Skip to main content  
 
   


SPRTechnote


DBCS Characters Unreadable and Console Entries Appear Incorrectly when Printing String via System.out.println

Technote Number: 1193671


Problem:
This issue was reported to Quality Engineering and has been addressed in Domino
6.0.2.

Excerpt from the Lotus Notes and Domino Release 6.0.2 MR fix list (available at
http://www.ibm.com/developerworks/lotus/):

Designer
SPR# MCHG5CC6CE - DBCS characters are unreadable when printing a string via
System.out.println.

Workaround:
Enable Unicode display for Notes via the User Preferences: File > Preferences
> User Preferences > Basics (default) > Additional Options (scroll list). Set
the default fonts for Notes to a Unicode font. At the User Preferences dialog
click the Default Fonts button to set the desired fonts.

From a Windows client use the operating system's Character Map accessory to
determine if a font has the Unicode option under its "Character Set" property.
From the Windows task bar select Start > Programs > Accessories > System Tools
> Character Map.


Steps To Reproduce Problem:

Run the Java agent below on an AS400 server to print a string with DBCS
characters to the Domino Server console. Note that DBCS characters are shown
as garbage.

import lotus.domino.*;

public class JavaAgent extends AgentBase {

public void NotesMain() {

try {
Session session = getSession();
AgentContext agentContext = session.getAgentContext();

// (Your code goes here)

System.out.println("張麗燕張麗燕張麗燕張麗燕張麗燕張麗燕張麗燕");

} catch(Exception e) {
e.printStackTrace();
}
}
}
More >





  Document options
Print this document
Print view

  Search
Search Advanced Search


  Fix list views

 RSS feeds   RSS
Subscribe to the fix list

  Resources
Using this database
View notices

  HCL Support
HCL Support


    About HCL Privacy Contact